constructor

fun constructor(ref: KClass<*>, filter: ConstructorFilter.() -> Unit = {}): ConstructorRef

Get a constructor from the given class literal matching filter. Must be called with a literal.


fun constructor(fqClassName: FqName, filter: ConstructorFilter.() -> Unit = {}): ConstructorRef

Get a constructor from the class with fqClassName, matching filter.


fun ClassRef.constructor(filter: IConstructorFilter.() -> Unit): ConstructorRef

Get a constructor from this ClassRef that matches filter.


fun PackageRef.constructor(className: String, filter: ConstructorFilter.() -> Unit = {}): ConstructorRef

Get a constructor for the class with className in this PackageRef, matching filter.


fun RootPackage.constructor(className: String, filter: ConstructorFilter.() -> Unit = {}): ConstructorRef

Get a constructor for the class with className in this RootPackage, matching filter.